Skip to content

[Integration] Integrating LLM-proxy (#54/#63) onto PR stack - #73

Open
Saaketh0 wants to merge 3 commits into
cli/canyonos-clifrom
cli/llm-proxy
Open

[Integration] Integrating LLM-proxy (#54/#63) onto PR stack#73
Saaketh0 wants to merge 3 commits into
cli/canyonos-clifrom
cli/llm-proxy

Conversation

@Saaketh0

@Saaketh0 Saaketh0 commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

No new functionality, just added the code from #63 onto this branch and stack, was mainly a clean merge.

Re-apply the feature/llm-proxy-telemetry proxy onto the current CLI
packaging architecture (rather than merging the stale branch):

- Add ventis/llm_proxy/ package (imports remapped to current layout,
  with in-container flat fallbacks for redis_client/ventis_context)
- Delete ventis/controller/bedrock.py; rewrite the 3 examples to call
  boto3 bedrock-runtime converse() directly (telemetry now via proxy)
- Start the proxy per-container in LocalController and auto-inject the
  X-Ventis-Future-ID boto3 header
- Inject AWS_ENDPOINT_URL_BEDROCK_RUNTIME in Local/EC2 runtimes
- Copy llm_proxy into agent+workflow images via stub_generator; add
  flask/requests to agent image + host deps
- Update FUTURE_SCHEMA.md provenance and instance-manager runtime tests
…uest

before-call handlers receive the prepared-request params dict, not the
request object (that only exists on before-send). Reading kwargs['request']
was always None, so X-Ventis-Future-ID was never attached and the proxy
could not attribute token telemetry to the executing future.
Bring the CLI architecture doc (build/deploy/config flows and container
lifecycle) over from cli/canyonos-cli, and drop the stale PyPi republish
snippet from the README.
@Saaketh0 Saaketh0 self-assigned this Sep 5, 2026
@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 6f115260-90da-4c7c-8f3f-98e65487f6e3


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Saaketh0 Saaketh0 mentioned this pull request Sep 5, 2026
Comment thread ventis/llm_proxy/app.py
return proxy_request(prov, subpath, request)
except Exception as exc: # surface upstream/adapter errors as 502
log.exception("proxy error for %s/%s", provider, subpath)
return jsonify(error="proxy_error", detail=str(exc)), 502
@Saaketh0 Saaketh0 mentioned this pull request Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants